/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.hutech09.jsale.bsn;

import java.util.List;
import java.util.Map;
import javax.ejb.Local;
import org.hutech09.jsale.bsn.exception.ItemNotFoundException;
import org.hutech09.jsale.entity.Supplier;

/**
 *
 * @author Nam
 */
@Local
public interface ISupplierManager {

    Supplier create(Supplier supplier);
 
    List<Supplier> findPaging(int first, int pageSize, String orderBy, boolean desc, Map<String, String> filter);

    Supplier findByID(long supplierId);

    long count();

    public void delete(long supplierId) throws ItemNotFoundException;

    public void update(Supplier supplier) throws ItemNotFoundException;

    long count(Map<String, String> filter);
}
